import api from "@/api"
import { dropdown_Map } from '@/enums/common';

function enterprise(params) {
	let option = []
	api.student.enterprise.get().then(resp => {
		console.log(resp);
		option = resp.data.records
		option.forEach(item => {
			item.value = item.id
			item.label = item.name
		});
	})
	return option
}

export const formColumn = [
	{
		component: "el-select",
		label: "经办校区",
		prop: "schoolId",
		options: dropdown_Map(),
	},
	{
		component: "el-select",
		label: "经办人",
		prop: "staffId",
		options: enterprise(),
	},
	{
		component: "el-date-picker",
		label: "申请时间",
		prop: "applicationTimeStart",
		props: {
			type: "daterange",
		},
	},
	// {
	// 	component: "el-date-picker",
	// 	label: "退费时间",
	// 	prop: "confirmRefundStart",
	// 	props: {
	// 		type: "daterange",
	// 	},
	// },
	// {
	// 	component: "el-select",
	// 	label: "授课老师",
	// 	prop: "teacherId",
	// 	options: [],
	// },
];

export const column = [
	{
		label: "学员姓名",
		prop: "studentName",
	},
	{
		label: "家长手机",
		prop: "phone",
	},
	{
		label: "授课老师",
		prop: "teacher",
	},
	{
		label: "班级名称",
		prop: "className",
	},
	{
		label: "退费课次",
		prop: "returnTime",
	},
	{
		label: "退费总额",
		prop: "returnTotal",
	},
	{
		label: "交易来源",
		prop: "transactionSource",
	},
	{
		label: "退费状态",
		prop: "state",
	},
	{
		label: "退费方式",
		prop: "refundMethod",
	},
	{
		label: "经办校区",
		prop: "schoolName",
	},
	{
		label: "经办人",
		prop: "person",
	},
	{
		label: "申请时间",
		prop: "applicationDate",
	},
	{
		label: "退费时间",
		prop: "refundDate",
	},
	{
		label: "订单号",
		prop: "orderNumber",
	},
	// {
	// 	label: "转介绍学员",
	// 	prop: "recommendStudentName",
	// 	width: "150",
	// },
	// {
	// 	label: "转介绍员工",
	// 	prop: "recommendStaffName",
	// 	width: "150",
	// },
];
